package com.zuosh.netty5;

import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;

import javax.sound.midi.Soundbank;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
//        System.out.println("Hello World!");
//        System.out.println(210|3);

        ByteBuf byteBuf = Unpooled.wrappedBuffer("hello".getBytes());

        byteBuf.readByte();
        byteBuf.readByte();
        byteBuf.readByte();
        byteBuf.retain();
        System.out.println(byteBuf.capacity());



    }
}
